#!/bin/bash
PREFIX=$(pwd)/build/macos
mkdir -p $PREFIX
make clean
./configure \
  --prefix=$PREFIX \
  --disable-doc \
  --disable-ffplay \
  --disable-ffprobe \
  --enable-static \
  --disable-shared \
  --disable-everything \
  --disable-filters \
  --disable-swresample \
  --disable-swscale \
  --disable-postproc \
  --disable-w32threads \
  --disable-os2threads \
  --disable-network \
  --disable-dwt \
  --disable-error-resilience \
  --disable-lsp \
  --disable-faan \
  --disable-iamf \
  --disable-pixelutils \
  --disable-avdevice \
  --disable-iconv \
  --disable-zlib \
  --enable-pthreads \
  --enable-avformat \
  --enable-avcodec \
  --enable-avfilter \
  --enable-libfreetype \
  --enable-filter=drawtext \
  --enable-libharfbuzz
make && make install